import styled from "styled-components";

export const PhoneLoginWrap = styled.div`
  width: 220px;
  margin: 0 auto;
  .country-code-phone {
    width: 100%;
    display: flex;
    margin-bottom: 20px;
    .country-code {
      border: 1px solid #ccc;
      border-right: none;
      line-height: 30px;
      padding: 0 18px 0 5px;
      position: relative;
      cursor: pointer;
    }
    .codeRed {
      border: 1px solid red;
      border-right: none;
    }
    .phoneNumber {
      flex: 1;
      background-color: #fff;
      border: 1px solid #ccc;
      line-height: 30px;
      padding-left: 10px;
    }
    .pRed {
      border: 1px solid red;
      border-left: 1px solid #ccc;
    }
    .icon-up-jt {
      position: absolute;
      width: 7px;
      height: 4px;
      background-image: url(${require("@/assets/img/sprite_icon3.png")
        .default});
      background-position: -260px -450px;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
    }
    .country-list {
      position: absolute;
      width: 220px;
      z-index: 999;
      top: 109px;
      display: none;
      ul {
        height: 160px;
        overflow-y: scroll;
        border: 1px solid #cdcdcd;
        border-top: 0;
        li {
          height: 32px;
          line-height: 32px;
          background-color: #fff;
          cursor: pointer;
          display: flex;
          justify-content: space-between;
          padding: 0 10px;
          font-size: 12px;
          :hover {
            background-color: #eaeaea;
          }
        }
      }
    }
  }
  .password-ipt-box {
    position: relative;
    margin-bottom: 10px;
    .password-ipt {
      line-height: 30px;
      background-color: #fff;
      border: 1px solid #ccc;
      width: 220px;
      padding-right: 66px;
      padding-left: 10px;
    }
    .forgetPassword {
      font-size: 12px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 0;
      bottom: 2px;
      padding-right: 10px;
    }
    .yzm-ipt {
      background-color: #fff;
      height: 30px;
      border: 1px solid #ccc;
      width: 136px;
      padding: 5px 6px;
    }
    .yzm {
      float: right;
      height: 30px;
      line-height: 30px;
      font-size: 12px;
      border: 1px solid #c3c3c3;
      border-radius: 3px;
      padding: 0 7px;
      background-image: linear-gradient(#ffffff, #e5e5e5);
    }
  }
  .phoneLoginMessage,
  .yzmR,
  .mmR {
    height: auto;
    font-size: 12px;
    color: #e33232;
    line-height: 18px;
    display: none;
    .warning {
      vertical-align: middle;
      margin-right: 8px;
      display: inline-block;
      width: 14px;
      height: 14px;
      background-position: -50px -270px;
    }
  }
  .forget-login {
    position: relative;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    .auto-login {
      display: flex;
      align-items: center;
      #checkboxL {
        border: none;
        height: 13px;
        width: 13px;
        margin-right: 5px;
      }
      .messageLogin {
        font-size: 12px;
      }
      .auto-login {
        font-size: 12px;
      }
    }
    .messageLogin {
      font-size: 12px;
    }
  }

  .main-login-btn {
    width: 220px;
    height: 31px;
    line-height: 31px;
    text-align: center;
    margin-top: 10px;
    background-image: url(${require("@/assets/img/sprite_button.png").default});
    background-position: 0 -387px;
    color: #fff;
    :hover {
      background-position: 0 -469px;
      cursor: pointer;
    }
  }
  .phone-new-loginWay {
    position: absolute;
    bottom: 0px;
    background-color: #f7f7f7;
    height: 49px;
    border-top: 1px solid #c6c6c6;
    left: 0px;
    width: 530px;
    line-height: 49px;
    font-size: 12px;
    padding-left: 20px;
    span {
      cursor: pointer;
    }
    .zc-zh-free {
      color: #999;
      cursor: pointer;
      float: right;
      margin-right: 20px;
    }
  }
`;
